import axios from './interceptor';

export function getGiveList(params?: any,data?:any) {
  return axios.post(`/adoption/query?pageNum=${params.pageNum}&pageSize=${params.pageSize}`,data);
}

export function deleteGive(data?: any) {
  return axios.post('/adoption/delete',  data );
}

export function createGive(data?: any) {
  return axios.post('/adoption/publish', { data });
}

export function approve(data: any) {
  return axios.post('/adoption/audit/show/approve', data);
}

export function refuse(data: any) {
  return axios.post('/adoption/audit/show/reject', data);
}
